package com.example.springboot.config.anotation.parametervalidate;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 解析集合字段不为空和里面不能全部为空串
 *
 * @author chenzhangkun
 * @ClassName ArratNotNullAndEmptyStr
 * @description: TODO
 * @date 2024年04月24日
 */
@Retention(value = RetentionPolicy.RUNTIME)
@Documented
@Target(value = ElementType.FIELD)
@Constraint(validatedBy = {ArrayNotNullAndEmptyValidator.class})
public @interface ArrayNotNullAndEmptyStr {
	String message() default "字段不能为空";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};
}
